package lab02.test02;

/**
 * Created by Jammy on 2017/10/15.
 */
public class Circle {
    double r;
    double pi=3.14;
    double length;
    double area;

    public Circle(){}

    public Circle(double r){
        this.r=r;
    }
    public double getR() {
        return r;
    }
    public void setR(double r){
        this.r=r;
    }

    double length(){
        length=2*pi*r;
        return length;
    }

    double area(){
        area=pi*r*r;
        return area;
    }
}


